<?php
if ( ! defined('ACTION')) define('ACTION', 'download');

require_once('index.php');

function action_download() {
    global $document, $content;
    $content->addChild('download');
    response();
}

if (ACTION == 'download') {
    action_download();
}
